<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'cash/get_audit_log',
        fields:[[
            {field:'username',     align:'center', title:'会员', width:300, sortable:false},
            {field:'content',   align:'center',title: '内容',      width:300, sortable:true},
            {field:'date',  align:'center', title: '更多日期',      width:300, sortable:true}
        ]], tools:[
            {instant:false},
            {type:'datebox', text:'日期', width:100,name:'sdate'},
            {type:'datebox', text:'-', width:100,name:'edate'},
            {type:'textbox', text:'帐号', width:100,name:'username'},
            {text:"搜索", iconCls:"icon-search", handler:function(){
                $('#<?php echo $id?>').DataSource('search');
            }},
            '-'
        ],
        checkbox:false,
        footer:true,
        success:function(){

        }
    });
</script>